<?php $this->_extends('_layouts/main_layout'); ?>
<?php $this->_block('title'); ?>
  Market Dashboard
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
	<div id="content" class="box">
		<h1>Market Dashboard</h1>
		
		<table class="full-size">
			<tbody>
				<tr>
					<th>Publisher</th>
					<th>Sub</th>
					<th>Impression</th>
					<th>Click</th>
					<th>Conversion</th>
					<th>Ad Spend</th>
				</tr>
				<?php
					if(!empty($publishers)):
						foreach ($publishers as $publisher):
				?>
					<tr>
						<td><?php echo $publisher['pub_name'];?></td>
						<td><?php echo $publisher['sub_name'];?></td>
						<td><?php echo $publisher['impression'];?></td>
						<td><?php echo $publisher['click'];?></td>
						<td><?php echo $publisher['conversion'];?></td>
						<td><?php echo $publisher['ad_spend'];?></td>
					<tr>
				<?php 
						endforeach;	
					endif;		
				?>
			</tbody>
		</table>
	</div>
<?php $this->_endblock(); ?>